package com.zy.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.admin.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * @author 29787
 */
@Mapper
@Component
public interface AdminDao extends BaseMapper<Admin> {

    /**
     * 根据管理员账号密码查询
     * @param adminNum
     * @param adminPassword
     * @return Admin
     */
    @Select("select * from hms_admin where admin_num=#{adminNum} and admin_password=#{adminPassword}")
    Admin getAdmin(String adminNum,String adminPassword);
}
